﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AdminSite.Master" AutoEventWireup="true" CodeBehind="NewPriceList.aspx.cs" Inherits="Agents.Admin.NewPriceList" %>
<asp:Content ID="Header" ContentPlaceHolderID="Header" runat="server">
</asp:Content>
<asp:Content ID="MainContent" ContentPlaceHolderID="MainContent" runat="server">
    <h1>
        מחירים
    </h1>           
    <hr />   
    <asp:ScriptManager ID="ScriptManager1" runat="server" />  
    <asp:Timer ID="redirectionTimer" runat="server" Interval="2000" Enabled="false" 
        ontick="redirectionTimer_Tick" />    

    פעולה רצויה:<asp:RadioButtonList ID="radAction" runat="server"
            AutoPostBack="true" OnSelectedIndexChanged="radAction_SelectedIndexChanged">
            <asp:ListItem Value="NewPriceList" Text="מחירון חדש" Selected="True" />
            <asp:ListItem Value="ChangePrices" Text="שינוי מחירים" Selected="False" />
    </asp:RadioButtonList>

    <asp:Panel ID="panelNewPriceList" runat="server" GroupingText="מחירון חדש">
        <table border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td class="title">
                    <asp:Label ID="Label1" Text="מספר מחירון:" runat="server" />
                </td>
                <td class="textbox">
                    <asp:TextBox ID="numberTxtbox" runat="server" />
                </td>                       
            </tr>
                <tr>
                <td class="title">
                    <asp:Label ID="Label2" Text="אחוז הנחה:" runat="server" />
                </td>
                    <td class="textbox">
                    <asp:TextBox ID="discountPrecentTxtbox" runat="server" />
                </td>                            
            </tr>                    
        </table>     
    </asp:Panel>   
    
    <asp:Panel ID="panelChangePrices" runat="server" GroupingText="שינוי מחירי מוצרים" Visible="false">

        <table>
            <tr>
                <td>
                    <b>סוג השינוי:</b>
                    <asp:RadioButtonList ID="radReduceRaise" runat="server">
                        <asp:ListItem Value="Raise" Text="ייקור" Selected="True" />
                        <asp:ListItem Value="Reduce" Text="הוזלה" Selected="False" />
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td>
                    <b>המוצרים המושפעים:</b>
                    <asp:RadioButtonList ID="radProducts" runat="server"
                        AutoPostBack="true" OnSelectedIndexChanged="radProducts_SelectedIndexChanged">
                        <asp:ListItem Value="All" Text="כל המוצרים" Selected="True" />
                        <asp:ListItem Value="ByCategory" Text="לפי קטגוריה" Selected="False" />
                        <asp:ListItem Value="One" Text="מוצר בודד" Selected="False" />
                    </asp:RadioButtonList>
                </td>
                <td>
                    <asp:DropDownList ID="cmbProducts" runat="server" Visible="false" CssClass="combobox" />
                </td>
            </tr>
            <tr>
                <td>
                    <b>יחידות מידה:</b>
                    <asp:RadioButtonList ID="radUnits" runat="server">
                        <asp:ListItem Value="Absolute" Text="שקלים (אבסולוטית)" Selected="True" />
                        <asp:ListItem Value="Precentage" Text="אחוזים (יחסית)" Selected="False" />
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td>
                    <b>ערך השינוי: </b>
                    <asp:TextBox ID="txtChangeValue" runat="server" />
                    <!-- Allow only number for txtChangeValue -->
                    <ajaxToolkit:FilteredTextBoxExtender ID="ftbe" runat="server"
                            TargetControlID="txtChangeValue" ValidChars="0123456789." />
                </td>
            </tr>
        </table>
    </asp:Panel>
             
    <br />           

    <hr />
    <div class="alignCenter">               
        <asp:Button ID="okBtn" Text="אישור" runat="server" onclick="okBtn_Click" CssClass="button"/>                
        <asp:Button ID="backBtn" Text="חזור" runat="server" onclick="backBtn_Click" CssClass="button"/>
        <asp:Label ID="lblMessage" runat="server" />
    </div>
</asp:Content>
